<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<meta charset="utf-8">
<head th:include="includes/add-include :: add-header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal" id="myForm" th:object="${info}">
            <input type="hidden" id="dataId" name="dataId" th:field="*{dataId}" />
            <div class="form-group">
                <label class="col-sm-3 control-label">字典类型：</label>
                <div class="col-sm-5">
                    <input id="dictType" name="dictType" class="form-control" type="text" readonly="true" th:field="*{dictType}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">字典编码：</label>
                <div class="col-sm-5">
                    <input id="dictCode" name="dictCode" class="form-control" type="text" th:field="*{dictCode}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">字典值：</label>
                <div class="col-sm-5">
                    <input id="dictValue" name="dictValue" class="form-control" type="text" th:field="*{dictValue}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">字典排序：</label>
                <div class="col-sm-5">
                    <input id="dictSort" name="dictSort" class="form-control" type="text" th:field="*{dictSort}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">回显样式：</label>
                <div class="col-sm-5">
                    <select name="cssClass" class="form-control">
                        <option value="" th:field="*{cssClass}">---请选择---</option>
                        <option value="default" th:field="*{cssClass}">默认</option>
                        <option value="primary" th:field="*{cssClass}">主要</option>
                        <option value="success" th:field="*{cssClass}">成功</option>
                        <option value="info" th:field="*{cssClass}">   信息</option>
                        <option value="warning" th:field="*{cssClass}">警告</option>
                        <option value="danger" th:field="*{cssClass}"> 危险</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">系统默认：</label>
                <div class="col-sm-5">
                    <div class="radio-box" th:each="dict : ${@dict.getData('yes_no')}">
                        <input type="radio" th:id="${dict.dataId}" name="isDefault" th:value="${dict.dictCode}" th:field="*{isDefault}">
                        <label th:for="${dict.dictCode}" th:text="${dict.dictValue}"></label>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">状态</label>
                <div class="col-sm-5">
                    <div class="radio-box" th:each="dict : ${@dict.getData('normal_status')}">
                        <input type="radio" th:id="${dict.dataId}" name="status" th:value="${dict.dictCode}" th:field="*{status}">
                        <label th:for="${dict.dictCode}" th:text="${dict.dictValue}"></label>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">备注</label>
                <div class="col-sm-5">
                    <textarea class="form-control" id="remark" name="remark"
                                      rows="3"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-5 control-label"></label>
                <div class="col-sm-3">
                    <a class="btn btn-info btn-rounded btn-lg-rd" onclick="edit()"><i class="fa fa-bell-o"></i>&nbsp;保存</a>
                </div>
            </div>
        </form>
    </div>
    <div th:include="includes/add-include :: add-footer"></div>
    <script th:src="@{/script/system/dictData/edit.js}"></script>
    <script type="text/javascript">
	    var prefix = ctx + "system/dictData";
    </script>
</body>
</html>
